import request from '@/utils/request.js'

//获取上级领导
export function getSuperior() {
	return request({
		url: `business/sysClock/superiorsList`,
		method: 'GET'
	})
}

//打卡列表
export function getClickList(data) {
	return request({
		url: `business/sysClock/page`,
		method: 'GET',
		params: data
	})
}

//上传文件
export function getMonthClickDays(data) {
	return request({
		url: `business/sysClock/getClocksByMonth`,
		method: 'GET',
		params: data
	})
}

//考勤打卡
export function clickPunch(data) {
	return request({
		url: `business/sysClock/save`,
		method: 'POST',
		params: data
	})
}

// 考勤列表
export function getAllSubPeople() {
	return request({
		url: `business/zdhjcAttendance/getAllSubPeople`,
		method: 'GET'
	})
}

// 请假补卡
export function getAllnotClockPeople(data) {
	return request({
		url: `business/zdhjcAttendance/notClockPage`,
		method: 'GET',
		params: data
	})
}


// 请假补卡
export function putAgreeOrRefuse(data) {
	return request({
		url: `business/zdhjcAttendance/agreeOrDecline`,
		method: 'PUT',
		params: data
	})
}



//删除文件
// export function getMonthClickDays(month) {
// 	return request({
// 		url: `business/sysClock/getClocksByMonth`,
// 		method: 'DELETE',
// 	})
// }
